# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-tika
_pyname="tika"
pkgver=2.6.0
pkgrel=0
arch="noarch"
pkgdesc="Apache Tika Python library"
url="https://pypi.python.org/project/tika"
license="Apache-2.0"
makedepends="
	py3-setuptools
	py3-gpep517
	py3-wheel
	"
options="!check" # Failing testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/t/tika/tika-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest -v
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
092986afd0968d41b6a0274b1f1cac5f6a168bc79cea920f65543c46b6541b6b02eceb0ae89fc254b709421dd75ebe50aad0f17a52becbdb27a541b80a08a0ae  py3-tika-2.6.0.tar.gz
"
